package com.px.project.module.ht.controller;

import java.util.List;

import com.px.project.module.ht.service.ILocomotivePresetService;
import com.px.project.module.ht.vo.LocomotivePresetVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * 系统管理》生产调度》机车机械预置接口
 *
 * @author 品讯科技
 * @date 2024-08
 */
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping(value = "/ht/locomotive/preset")
public class LocomotivePresetController {
    private final ILocomotivePresetService locomotivePresetService;

    /**
     * 获取列表（未分页）
     *
     * @return {@link List}<{@link LocomotivePresetVo}> 列表
     */
    @GetMapping(value = "/list")
    public List<LocomotivePresetVo> list() {
        return this.locomotivePresetService.listOfAll();
    }
}